package com.playball.lottery.customview;

import android.widget.GridView;

/**
 * 竞彩足球自定义GridView,该自定义控件只是重写了GridView的onMeasure方法，使其不会出现滚动条，
 * ScrollView嵌套ListView也是同样的道理，不再赘述
 * 
 * @author Administrator
 * 
 */
public class JczqGridview extends GridView {
	public JczqGridview(android.content.Context context, android.util.AttributeSet attrs) {
		super(context, attrs);
	}

	/**
	 * 设置滚动条不显示，不滚动
	 */
	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);

	}
}
